package com.bu.model;

import java.util.Date;

import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

/**
 * @author xueqiang.mi
 * @since 2011-2-25
 */
@PersistenceCapable(table = "Users", identityType = IdentityType.APPLICATION)
public class User {
	@PrimaryKey
	private String email;
	@Persistent
	private String password;
	@Persistent
	private String role;
	@Persistent
	private Date crtDate;

	public Date getCrtDate() {
		return crtDate;
	}

	public String getEmail() {
		return email;
	}

	public String getPassword() {
		return password;
	}

	public String getRole() {
		return role;
	}

	public void setCrtDate(Date crtDate) {
		this.crtDate = crtDate;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public void setRole(String role) {
		this.role = role;
	}

	@Override
	public String toString() {
		return "User [email=" + email + ", role=" + role + ", crtDate=" + crtDate + "]";
	}
}
